﻿$(document).ready(function () {

    $("a[rel=example_group]").fancybox({
        'transitionIn': 'elastic',
        'transitionOut': 'elastic',
        'titlePosition': 'over',
        'titleFormat': function (title, currentArray, currentIndex, currentOpts) {
            return '<span id="fancybox-title-over">' + (title.length ? ' &nbsp; ' + title : '') + '<div style="float: right; margin-right: 10px;">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + '</div></span>';
        }
    });
});